<?php

use yii\db\Migration;

/**
 * Handles the creation of table `{{%furniture_place}}`.
 */
class m230606_071018_create_furniture_place_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->createTable('{{%furniture_place}}', [
            'id' => $this->primaryKey(),
            'title' => $this->string()->notNull(),
            'description' => $this->string(512),
            'date_end' => $this->date(),
            'type' => $this->tinyInteger(),
        ]);
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropTable('{{%furniture_place}}');
    }
}
